<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/">
    <script src="resources/js/lib/sea.js"></script>
    <script type="text/javascript">
        seajs.config({
            base: "${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/resources/"
        });
        seajs.use(["css/admin/main.css", , "css/validate/jquery.validator.css", "js/cms.validate.updatepwd.js"]);
    </script>
</head>
<body>
<div id="content">
    <h3 class="admin_link_bar">
        <jsp:include page="inc.jsp"/>
    </h3>

    <form method="post" action="admin/user/updatepwd" id="addForm">
        <table width="800" cellspacing="0" cellPadding="0">
            <input type="hidden" name="id" value="${user.id}"/>
            <thead>
            <tr>
                <td colspan="2">修改用户--${user.username}</td>
            </tr>
            </thead>

            <tr>
                <td class="rightTd">原始密码:</td>
                <td class="leftTd"><label>
                    <input type="password" name="oldPwd" size="30"/>
                </label></td>
            </tr>

            <tr>
                <td class="rightTd">新密码:</td>
                <td class="leftTd"><label>
                    <input type="password" name="password" size="30"/>
                </label></td>
            </tr>
            <tr>
                <td class="rightTd">确认密码:</td>
                <td class="leftTd"><label>
                    <input type="password" name="confirmPwd" size="30"/>
                </label></td>
            </tr>
            <tr>
                <td colspan="2" class="centerTd"><input type="submit" value="修改密码"/><input type="reset"/></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>